package wxshop.service.user.impl;

import wxshop.api.user.dao.SelectDao;
import wxshop.api.user.model.User;
import wxshop.api.user.model.Xx;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wxshop.api.user.service.SelectService;

import java.util.List;

/**
 * Created by yvdedu.com on 2018/2/27.
 */
@SuppressWarnings("SpringJavaAutowiringInspection")
@Service
public class SelectServiceImpl implements SelectService {
	
	@Autowired
	private SelectDao selectDao;
	
	@Override
	public User getQueryUseres (int id) {
		return selectDao.getQueryUser(id);
	}
	
	@Override
	public List<Xx> getQueryInfoes (int user_id) {
		return selectDao.getQueryInfo(user_id);
	}
	
	//单独的信息
	@Override
	public Xx getQueryInfoOnes (int id) {
		return selectDao.getQueryInfoOne(id);
	}
}
